<%@ page import="assignmentonepenguins.Bidding" %>



<div class="fieldcontain ${hasErrors(bean: biddingInstance, field: 'amount', 'error')} required">
	<label for="amount">
		<g:message code="bidding.amount.label" default="Amount" />
		<span class="required-indicator">*</span>
	</label>
	$<g:field type="double" name="amount" min="0.01" required="" value="${fieldValue(bean: biddingInstance, field: 'amount')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: biddingInstance, field: 'bidder', 'error')} required">
	<label for="bidder">
		<g:message code="bidding.bidder.label" default="Bidder" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="bidder" name="bidder.id" from="${assignmentonepenguins.Customer.list()}" optionKey="id"
              optionValue="email" required="" value="${biddingInstance?.bidder?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: biddingInstance, field: 'listing', 'error')} required">
	<label for="listing">
		<g:message code="bidding.listing.label" default="Listing" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="listing" name="listing.id" from="${assignmentonepenguins.Listing.list()}" optionKey="id"
              optionValue="name" required="" value="${biddingInstance?.listing?.id}" class="many-to-one"/>
</div>

